<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div th:if="${error}" th:text="${error}"></div>
    <form action="login" method="post">
        <label>账号：<input type="text" name="name"></label>
        <label>密码：<input type="password" name="password"></label>
        <input type="submit" value="登录">
    </form>
</body>
</html>